package com.ruoyi.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.ProjectRecoveryDetailMapper;
import com.ruoyi.project.domain.ProjectRecoveryDetail;
import com.ruoyi.project.service.IProjectRecoveryDetailService;

/**
 * 工程复盘详情Service业务层处理
 * 
 * @author liboyu
 * @date 2024-05-30
 */
@Service
public class ProjectRecoveryDetailServiceImpl implements IProjectRecoveryDetailService 
{
    @Autowired
    private ProjectRecoveryDetailMapper projectRecoveryDetailMapper;

    /**
     * 查询工程复盘详情
     * 
     * @param recoveryDetailId 工程复盘详情主键
     * @return 工程复盘详情
     */
    @Override
    public ProjectRecoveryDetail selectProjectRecoveryDetailByRecoveryDetailId(Long recoveryDetailId)
    {
        return projectRecoveryDetailMapper.selectProjectRecoveryDetailByRecoveryDetailId(recoveryDetailId);
    }

    /**
     * 查询工程复盘详情列表
     * 
     * @param projectRecoveryDetail 工程复盘详情
     * @return 工程复盘详情
     */
    @Override
    public List<ProjectRecoveryDetail> selectProjectRecoveryDetailList(ProjectRecoveryDetail projectRecoveryDetail)
    {
        return projectRecoveryDetailMapper.selectProjectRecoveryDetailList(projectRecoveryDetail);
    }

    /**
     * 新增工程复盘详情
     * 
     * @param projectRecoveryDetail 工程复盘详情
     * @return 结果
     */
    @Override
    public int insertProjectRecoveryDetail(ProjectRecoveryDetail projectRecoveryDetail)
    {
        return projectRecoveryDetailMapper.insertProjectRecoveryDetail(projectRecoveryDetail);
    }

    /**
     * 修改工程复盘详情
     * 
     * @param projectRecoveryDetail 工程复盘详情
     * @return 结果
     */
    @Override
    public int updateProjectRecoveryDetail(ProjectRecoveryDetail projectRecoveryDetail)
    {
        return projectRecoveryDetailMapper.updateProjectRecoveryDetail(projectRecoveryDetail);
    }

    /**
     * 批量删除工程复盘详情
     * 
     * @param recoveryDetailIds 需要删除的工程复盘详情主键
     * @return 结果
     */
    @Override
    public int deleteProjectRecoveryDetailByRecoveryDetailIds(Long[] recoveryDetailIds)
    {
        return projectRecoveryDetailMapper.deleteProjectRecoveryDetailByRecoveryDetailIds(recoveryDetailIds);
    }

    @Override
    public Long getFkId(Long recoveryId) {
        return projectRecoveryDetailMapper.getFkId(recoveryId);
    }

    /**
     * 删除工程复盘详情信息
     * 
     * @param recoveryDetailId 工程复盘详情主键
     * @return 结果
     */
    @Override
    public int deleteProjectRecoveryDetailByRecoveryDetailId(Long recoveryDetailId)
    {
        return projectRecoveryDetailMapper.deleteProjectRecoveryDetailByRecoveryDetailId(recoveryDetailId);
    }
}
